package com.ruoyi.utils;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 通用分页请求
 *
 * @author 周志雄
 * @date 2024-03-09
 */
@Data
public class PageRequest {
    @ApiModelProperty(value = "页码")
    private int pageNum;

    @ApiModelProperty(value = "每页数量")
    private int pageSize;

    public PageRequest() {
        this.pageNum = 1;
        this.pageSize = 10;
    }

    public PageRequest(int pageNum, int pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
}
